package com.ssyt.store.sys.dao;

import com.ssyt.store.common.EasyUIPageModel;
import com.ssyt.store.sys.entity.SysUserEntity;

public interface SysUserDao {

	SysUserEntity login(String loginCode, String password);

	EasyUIPageModel<SysUserEntity> listUser(String sort, String order,
			int page, int rows);

	String addUser(SysUserEntity user);

	SysUserEntity showUserInfo(String id);

	String updateUser(SysUserEntity user);

	Integer deleteUser(String ids);

	EasyUIPageModel<SysUserEntity> listUserBySearch(String sort, String order,
			int page, int rows, String searchName, String roleId, Integer state);

	Integer updateUserState(SysUserEntity user);

	String equalPassword(String password, String id);

	void updatePassword(String newPassword, String id);
}
